package com.haier.dreambox.demo;

import com.haier.dreambox.demo.fragment.ControlHomeAcFragment_;
import com.haier.dreambox.demo.fragment.ControlMagicCubeFragment_;

/**
 * Created by smalant on 14/12/26.
 */
public class Constants {

    public static final String BUNDLE_KEY_PUBLIC_WIFI_SSID = "bundle_key_public_wifi_ssid";
    public static final String BUNDLE_KEY_PUBLIC_WIFI_PASSWORD = "bundle_key_public_wifi_password";
    public static final String BUNDLE_KEY_WIFI_SET_IS_WAIT = "bundle_key_wifi_set_is_wait";

    public static final String BUNDLE_KEY_REMOTE_LOGIN_URL = "bundle_key_remote_login_url";
    public static final String BUNDLE_KEY_REMOTE_LOGIN_IP = "bundle_key_remote_login_ip";
    public static final String BUNDLE_KEY_REMOTE_LOGIN_PORT = "bundle_key_remote_login_port";
    public static final String BUNDLE_KEY_REMOTE_LOGIN_SESSION = "bundle_key_remote_login_session";


    public static Class getFragmentByClz(String identifier) {
        if ("00000000000000008080000000041410".equals(identifier)) {
            //分体空调
            return ControlHomeAcFragment_.class;
        } else if ("111c1200240008100d8101504018030000000000000000000000000000000000".equals(identifier)) {
            //星盒
            return null;
        } else if ("111c120024000810330200118999990000000000000000000000000000000000".equals(identifier)) {
            return ControlMagicCubeFragment_.class;
        } else {
            return null;
        }
    }

}
